package com.example.wechattakeaway.mapper;

import com.example.wechattakeaway.entity.OptionDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OptionDetailMapper {
    //删除
    int deleteByPrimaryKey(Integer optionDetailId);

    //添加
    int insert(OptionDetail optionDetail);

    int insertSelective(OptionDetail record);

    //根据id查询
    OptionDetail selectByPrimaryKey(Integer optionDetailId);

    //修改
    int updateByPrimaryKeySelective(OptionDetail optionDetail);

    int updateByPrimaryKey(OptionDetail record);

    //根据选项id查询对应详情列表
    List<OptionDetail> selectByOptionId(Integer optionId);
}